﻿@model MyBlog2.Models.ArticleClassify
@{
    ViewData["Title"] = "添加分类";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<h1>添加分类</h1>
<br />

<form method="post" asp-route="AddClassifyPost">
    <div class="form-row align-items-end">
        @*<div asp-validation-summary="ModelOnly" class="text-danger"></div>*@
        <div class="col-sm-3 my-1">
            <label asp-for="Name">名称</label>
            <input type="text" class="form-control" id="Title" placeholder="名称" asp-for="Name">
            @*<span asp-validation-for="Name" class="text-danger"></span>*@
        </div>
        <div class="col-sm-3 my-1">
            <label  asp-for="Sort">排序</label>
            <input type="number" min="1" max="999" class="form-control" id="Title" placeholder="排序" asp-for="Sort">
            @*<span asp-validation-for="Sort" class="text-danger"></span>*@
        </div>
        <div class="col-auto my-1">
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>
</form>
